<template>
    <div>
        <p>我是子组件</p>
        <p>{{ $attrs.user.name }}--{{ $attrs.user.age }}</p>
    </div>
</template>

<script>
export default {
    data() {
        return {

        }
    },
    // props: ['user1'],
    mounted() {
        console.log('this-son', this);
    }

}
</script>
<style scoped></style>